package com.heima.model.behavior.dtos;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * @Author XHui
 * @Since 2024/3/3 14:41
 * @Version 1.0
 */
@Data
public class UnLikesBehaviorDTO {

    /**
     * 文章ID
     */
    @NotNull(message = "文章ID不能为空")
    private Long articleId;

    /**
     * 设备 ID
     */
    private Integer equipmentId;

    /**
     * 类型 0不喜欢 1取消喜欢
     */
    @NotNull(message = "类型不能为空")
    @Range(min = 0, max = 1, message = "类型只能为0或1")
    private Short type;
}
